package cn.edu.nju.software.model.user;

import java.sql.ResultSet;

import cn.edu.nju.software.model.DatabaseHelper;

public class Information {

	private static DatabaseHelper dbHelper;

	public Information() {
		if (dbHelper == null) {
			dbHelper = new DatabaseHelper();
		}
	}

	public ResultSet fetInformation(String username) {
		return dbHelper.fetchMemberInformation(username);
	}

	public void updatePassword(String username, String password) {
		dbHelper.updatePassword(username, password);
	}

	public void updateInformation(String username, String gender, String age) {
		dbHelper.updateInformation(username, gender, age);
	}
}
